Skip to content

Update to retreave magnetic field only once per run#1076

Merged
lauraser merged 1 commit into
AliceO2Group:masterfrom
lauraser:master
Jul 29, 2022
Merged

Update to retreave magnetic field only once per run#1076
lauraser merged 1 commit into
AliceO2Group:masterfrom
lauraser:master

Conversation

@lauraser

Copy link
Copy Markdown
Collaborator

No description provided.

// TODO done only once (and not per run). Will be replaced by CCDBConfigurable
static o2::parameters::GRPObject* grpo = nullptr;
if (grpo == nullptr) {
grpo = ccdb->getForTimeStamp<o2::parameters::GRPObject>("GLO/GRP/GRP", timestamp);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have in mind that for Run 3 data the CCDB endpoint and the layout of the magnetic field information has changed
You will need to consider that if you address JUN Pilot beam data and/or Run 3 data

// TODO done only once (and not per run). Will be replaced by CCDBConfigurable
static o2::parameters::GRPObject* grpo = nullptr;
if (grpo == nullptr) {
grpo = ccdb->getForTimeStamp<o2::parameters::GRPObject>("GLO/GRP/GRP", timestamp);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above

// TODO done only once (and not per run). Will be replaced by CCDBConfigurable
static o2::parameters::GRPObject* grpo = nullptr;
if (grpo == nullptr) {
grpo = ccdb->getForTimeStamp<o2::parameters::GRPObject>("GLO/GRP/GRP", timestamp);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above

@victor-gonzalez victor-gonzalez left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider my comments if you plan to access Run 3 data at some point

@lauraser lauraser disabled auto-merge July 29, 2022 07:17
@lauraser lauraser enabled auto-merge (squash) July 29, 2022 07:17
@lauraser lauraser merged commit d228cbf into AliceO2Group:master Jul 29, 2022

@alibuild alibuild left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approving on behalf of @lauraser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants